package cj.web.kly.constants;

public enum SubjectTypeEnum {
	//是否浮动
	TYPE_0("不浮动",0),
	TYPE_1("浮动",1);

	private String name;
	private int value;
	
	private SubjectTypeEnum(String name, int value){
		this.name = name;
		this.value = value;
	}
	
	public static String getName(int value) {
        for (SubjectTypeEnum c : SubjectTypeEnum.values()) {
            if (c.getValue()==value) {
                return c.name;
            }
        }
        return null;
    }
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
